#!/bin/bash
if cat /etc/os-release 1>/dev/null 2>&1
then
	distri=$(cat /etc/os-release | grep "NAME=" | head -n 1 | cut -d = -f2)
	vers=$(cat /etc/os-release | grep "VERSION_ID=" | head -n 1 | cut -d = -f2)
  if [[ $distri =~ Scientific && $vers == "6" ]]
  then
    distri="sl6"
    echo "The operation system is: $distri"
  elif [[ $distri =~ Scientific && $vers == "5" ]]
  then
    distri="sl5"
    echo "The operation system is: $distri"
  else
    echo "The operation system is: $distri, the version is $vers"
  fi
else
  echo " No lsb_release. Just hoping for the best using SL5 .... "
  distri="sl5"
fi


kern_wl=$(getconf LONG_BIT)
echo "The system is $kern_wl bit"


